/* 文章頁特定樣式 */

/* 页面标题 */
.page-title {
    text-align: center;
    margin: 30px 0;
    padding-bottom: 10px;
    position: relative;
}

.page-title h1 {
    font-size: 24px;
    color: #1a4b8c;
    margin-bottom: 10px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #ff9d2f;
}

/* 文章頁主體 */
.article-container {
    background-color: #4285F4;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 2%;
}

.article-main {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 面包屑导航 */
.breadcrumb {
    margin: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #1a4b8c;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #3a7bd5;
}

/* 文章标题和元信息 */
.article-header {
    margin-bottom: 20px;
}

.article-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* 文章内容区域 */
.article-content-box {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.article-content {
    color: #333333;
    line-height: 1.8;
    font-size: 16px;
}

.article-content h2 {
    font-size: 22px;
    color: #1a4b8c;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.article-content h3 {
    font-size: 18px;
    color: #1a4b8c;
    margin: 20px 0 10px;
}

.article-content p {
    margin-bottom: 15px;
    color: #333333;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.article-content a {
    color: #3a7bd5;
    text-decoration: none;
    transition: color 0.3s;
    border-bottom: 1px dotted #3a7bd5;
}

.article-content a:hover {
    color: #1a4b8c;
    text-decoration: underline;
}

.article-content strong {
    font-weight: bold;
    color: #1a4b8c;
}

/* 社交分享按钮 */
.social-share {
    display: flex;
    gap: 10px;
    margin: 30px 0 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    color: #1a4b8c;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-share a:hover {
    background-color: #1a4b8c;
    color: #ffffff;
    transform: translateY(-3px);
}

/* 文章导航 */
.article-navigation {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-navigation a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px 15px;
    background-color: #f0f0f0;
    border-radius: 5px;
    display: block;
}

.article-navigation a:hover {
    color: #ffffff;
    background-color: #1a4b8c;
}

/* 侧边栏 */
.sidebar-section {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.sidebar-title {
    font-size: 18px;
    color: #1a4b8c;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #ff9d2f;
}

/* 最新文章列表 */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-image {
    width: 80px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content {
    flex: 1;
}

.recent-post-title {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.recent-post-title a {
    color: #1a4b8c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-title a:hover {
    color: #3a7bd5;
}

.recent-post-date {
    font-size: 12px;
    color: #999;
}

/* 推荐阅读 */
.recommended-posts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recommended-posts a {
    display: block;
    color: #1a4b8c;
    text-decoration: none;
    padding: 10px 15px;
    background-color: #f0f0f0;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.recommended-posts a:hover {
    background-color: #1a4b8c;
    color: #ffffff;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .article-container {
        grid-template-columns: 100%;
    }
    
    .article-sidebar {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .article-container {
        padding: 20px;
    }
    
    .article-main {
        padding: 15px;
    }
    
    .page-title h1 {
        font-size: 22px;
    }
}

/* 文章標題樣式 */
.article-title {
    font-size: 28px;
    color: #1a4b8c;
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: bold;
}

/* 文章元信息樣式 */
.article-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.article-tag-link {
    color: #3a7bd5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-tag-link:hover {
    color: #1a4b8c;
    text-decoration: underline;
}

/* 文章橫幅圖片樣式 */
.article-banner {
    margin-bottom: 25px;
    border-radius: 10px;
    overflow: hidden;
}

.article-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* 標籤雲樣式 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f0f0f0;
    color: #1a4b8c;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tag-cloud a:hover {
    background-color: #1a4b8c;
    color: #fff;
    transform: translateY(-2px);
}

/* 移動端適配 */
@media (max-width: 992px) {
    .article-container {
        grid-template-columns: 65% 33%;
    }
}

@media (max-width: 768px) {
    .article-container {
        grid-template-columns: 100%;
    }
    
    .article-sidebar {
        margin-top: 40px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-content h2 {
        font-size: 20px;
    }
}
.article-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffcc00;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #b0b0b0;
    margin-bottom: 20px;
}

.article-meta-item {
    display: flex;
    align-items: center;
}

.article-meta-icon {
    margin-right: 5px;
}

.article-featured-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* 表格样式 */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
}

.article-content th, .article-content td {
    border: 1px solid #e0e0e0;
    padding: 10px;
    text-align: left;
}

.article-content th {
    background-color: #f5f5f5;
    color: #1a4b8c;
    font-weight: bold;
}

.article-content tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 文章目录样式 */
.toc-container {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    border-left: 3px solid #1a4b8c;
}

.toc-title {
    font-size: 18px;
    color: #1a4b8c;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.toc-list {
    padding-left: 0;
    list-style-type: none;
}

.toc-item {
    margin-bottom: 8px;
    line-height: 1.4;
}

.toc-h2 {
    padding-left: 0;
}

.toc-h3 {
    padding-left: 20px;
}

.toc-h4 {
    padding-left: 40px;
}

.toc-link {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    font-size: 14px;
}

.toc-link:hover {
    color: #ff9d2f;
}

/* 文章标签样式 */
.article-tags {
    margin: 30px 0 20px;
    padding-top: 20px;
}

.article-tags h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f0f0;
    border-radius: 30px;
    color: #555;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #1a4b8c;
    color: #fff;
}